{extend name="property/public/insidePageBase" /}
{block name="title"}公摊日志{/block}
{block name="body"}
<div class="layuimini-container">
    <div class="layuimini-main">
        <div class="layui-form  layui-form-pane">
            <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                <!--设备日志 add-->
                <table class="layui-hide" id="deviceLogsList" lay-filter="deviceLogsList"></table>
                <!--设备日志 add-->
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
{__block__}
<script>
    layui.use(['laydate','table'], function () {
        var table = layui.table;
        // 设备日志 add
        var tableIdDeviceLogs = 'deviceLogsList';
        table.render({
            elem: '#'+tableIdDeviceLogs,
            id:tableIdDeviceLogs,
            url: '{:url("propertyEnergySharedRoomDetail")}?shared_room_id={:request()->get('shared_room_id')}',
            cols: [[
                {type: "checkbox", width: 50},
                {field: 'add_time', width: 168,title: '公摊时间', sort: true},
                {field: 'use_num_z', width: 120, title: '公摊用量', sort: true},
                {field: 'remark', minWidth: 120,title: '备注说明', sort: true}
            ]],
            limits: [10, 15, 20, 25, 50, 100],
            limit: 15,
            page: true,
            height: 'full-120'
        });
        // 设备日志 end
    });
</script>
{/block}